package org;

import java.util.ArrayList;

//import org.entities.LevelObject;

public class Progress  {

    /** our version string */
    public static String version="v0.70";  
    
    /** have we shown the intro already? */
    public static boolean showIntro;  
    
    /** ship appear only when starting a new game */
    public static boolean initial;  
    
    /** no music before start playing (until ship is gone)*/
    public static boolean ingame;
    
    /** flag for sfx level changes */
    public static boolean sndModified;
    
    /** flag for bgm level changes */
    public static boolean musModified;
    
    /** bgm level */
    public static float musicVol = 20; 
    
    /** sfx level */
    public static float sfxVol = 20; 
    
    /** grab area name as setup in map properties*/
    public static String areaName;
    
    /** the bgm we want to play */
    public static String bgm;
    
    /** useless? ensure audio sample doesn't get started 3zillions times */
    public static boolean musicCtrl;
    
    /** boolean for gameover gets used in GameState and Transition */
    public static boolean gameOver;
    
    /** store player health */
    public static int shields;
    
    /** store player health */
    public static float health;
    
    /** store player health */
    public static int energy;
    
    /** store player health */
    public static float strength;
    
    /** store visited rooms on the map grid x=42, y=26 **/
    public static String[][] mapBlockAt= new String[42][26];
    public static ArrayList<String> storeMap=new ArrayList<String>();
    
    /** inventory grid x=9, y=15 */
    public static String[][] itemBlockAt= new String[9][15];
    public static ArrayList<String> storeItem=new ArrayList<String>();
    
    /** store level number. item got collected here. no respawn */
    public static String[] gotItemInLevel= new String[200];
    public static ArrayList<String> storeItemLevel=new ArrayList<String>();
    
    public static String setMusic(){
        if (BlockMap.tmap!=null){
            
            areaName = BlockMap.tmap.getMapProperty("areaName", "none");
            System.out.printf("areaName=[%s]\n",areaName);
            if (areaName.equals("crateria")){
                bgm = "data/music/Intrigue.ogg";
            }
        }
        else bgm="data/music/Fusiontitle2.ogg";
        return bgm;
    }    
}

